﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace AIStudio.Wpf.DiagramDesigner
{  

    /// <summary>
    /// 连接点
    /// </summary>
    [Serializable]
    [XmlInclude(typeof(ConnectorInfoItemBase))]
    public class ConnectorInfoItemBase : SelectableItemBase
    {
        public ConnectorInfoItemBase()
        {

        }

        public ConnectorInfoItemBase(ConnectorInfoBase viewmodel) : base(viewmodel)
        {
            ConnectorWidth = viewmodel.ConnectorWidth;
            ConnectorHeight = viewmodel.ConnectorHeight;
            Orientation = viewmodel.Orientation;
            ConnectorValue = viewmodel.ConnectorValue;
        }


        [XmlAttribute]
        public double ConnectorWidth
        {
            get; set;
        }

        [XmlAttribute]
        public double ConnectorHeight
        {
            get; set;
        }

        [XmlAttribute]
        public ConnectorOrientation Orientation
        {
            get; set;
        }

        [XmlAttribute]
        public double ConnectorValue
        {
            get; set;
        }

     
    }
}
